#ifndef _SYSTEM_H
#define _SYSTEM_H
#include "BF7006AMxx.h"


extern uint32_t get_system_tick(void);
#endif

typedef struct power_tx_timing_{
	#define LED_T_flicker      1000
	uint32_t t_charge_led;
	
	uint32_t t_select_start;
	uint32_t t_analog_ping_start;
	uint32_t t_digital_ping_start;
	
	uint32_t t_ping;
	#define MINI_T_ping   		65
	#define TARGE_T_ping		65
	#define MAX_T_ping    		(70+50)
	#define MAX_T_terminate 	28
	#define MAX_T_first   		20
	#define MAX_T_expire		90
	
	uint32_t t_contrl_err;
	uint32_t t_recv_power;
	#define MINI_T_timeout		700
	#define TARGET_T_timeout	1500
	#define MAX_T_timeout		(1800)
	#define MAX_T_active		21
	#define TARGET_T_active     20
	#define MINI_T_settle		3
	#define TART_T_settle		5
	#define MAX_T_settle		7
	#define MINI_T_power		8000
	#define TARGET_T_power		23000
	#define MAX_T_power			24000
	
	uint32_t t_identify;
	uint32_t t_config;
	#define MAX_T_next			25
	#define MINI_T_next			22
	uint32_t t_max;
	#define MAX_T_max			170
	
}power_tx_timing_t;
